@echo off

call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"

set BOOST_DIR=c:\home\aa\boost_1_54

set QTDIR=c:\Qt\5.1.1\mingw48_32
call %QTDIR%\bin\qtenv2.bat
set PATH= %QTDIR%\bin;C:\Program Files (x86)\CMake 2.8\bin;%BOOST_DIR%;%BOOST_DIR%\lib_shared;%PATH%;

set curpath=%~dp0



set EXTERNALS_ROOT=%curpath%..\Externals\
set EXTERNALS_BIN=%EXTERNALS_ROOT%bin\
set EXTERNALS_LIB=%EXTERNALS_ROOT%lib\
set EXTERNALS_INCLUDE=%EXTERNALS_ROOT%include

set OPL_ROOT=%curpath%..\Opl\
set OPL_INCLUDE=%OPL_ROOT%
set OPL_LIB=%OPL_ROOT%lib

rem if exist n:\bin\path.bat call n:\bin\path.bat

rem set QML_IMPORT_PATH=%QML_IMPORT_PATH%;c:\home\src\optra\client\engine\extensions\

echo Script directory=%curpath%
echo Externals=%EXTERNALS_ROOT%
echo Externals bin=%EXTERNALS_BIN%
echo Externals lib=%EXTERNALS_LIB%
echo Externals include=%EXTERNALS_INCLUDE%



echo Opl=%OPL_ROOT%
echo Opl include=%OPL_INCLUDE%
echo Opl lib=%OPL_LIB%

rem call %OPL_ROOT%opl.bat
start /b C:\Qt\Tools\QtCreator\bin\qtcreator.exe
cd %curpath%\..